var ReportAddPage = {
	'save': function() {
		if ($("#reportAddFrm").formValidate()) {
			var reportCategory = $("#reportAddFrm").find("select[name='reportCategory']").val();
			if (StringUtil.isBlank(reportCategory)) {
				MsgBox.info('报表所属业务不能为空！');
				return ;
			}
			addOneAjax.send();
		}
	},
	'onSaveSucc': function(data, status, xhr) {
		$.messager.info(data.message);
		var mWindow = MsgBox.getCurrentOpenDialogWindow();
		mWindow.datatable.refresh(false);
		MsgBox.closeActiveDialog();
	},
	'onFindOneSucc': function(data, status, xhr) {
		$("#reportAddFrm").autofill(data.info);
	}
};
$(function() {
	/*$('#reportJson').bind('keydown', function(e) {
		debugger;
		if (e.keyCode === 9) {
		    if (!this.textareValue) this.textareValue= ''
		    this.textareValue+= '\t'
		    // 阻止默认切换元素的行为
		    if (e && e.preventDefault) {
		      e.preventDefault()
		    } else {
		      window.event.returnValue = false
		    }
		  }
	}, false);*/
});
